package com.jic.order.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Getter
@Setter
public class OrderGoodsModel implements Serializable {

    //主键ID
    private long id;
    //商品id
    private long goodsId;
    //商品名称
    private String goodsName;
    //商品类型，无仓、普通
    private Integer goodsType;
    private String goodsImgUrl;
    //商品数量
    private Integer goodsNum;
    //商品数量，已转交货单数量
    private Integer alreadyTransferDeliverNum;
    //商品数量，待转交货单数量
    private Integer waitTransferDeliverNum;
    //备注
    private String mark;
    //版本号
    private long version;
    //销售单价，对应销售总金额
    private BigDecimal saleUnitPrice;
    //优惠单价，对应优惠总金额
    private BigDecimal discountUnitPrice;
    //购买单价，对应购买总金额
    private BigDecimal buyUnitPrice;
    //物流平摊单价
    private BigDecimal expressUnitFee;
    //实付总金额，实付总金额=（购买单价+物流平摊单价）*数量
    private BigDecimal actualPayTotalAmount;
    //卖家
    private SellerModel sellerModel;
    @ApiModelProperty(notes = "活动Id")
    private String promotionId;
    @ApiModelProperty(notes = "类型:1单一促销,2满量促销,3满额促销,4秒杀,5赠送类促销,6组合促销7.单品X件优惠,8换购,9预售,11优惠券")
    private Integer promotionType;
    @ApiModelProperty(notes = " 1.开团 2.参团")
    private Integer groupType;
    private Long distributorId;
    @ApiModelProperty("虚拟充值手机号")
    private String virtualPhone;
}
